unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, frxDesgn, frxClass, StdCtrls;

type
  TForm1 = class(TForm)
    Btnv_1: TButton;
    frxReport1: TfrxReport;
    frxDesigner1: TfrxDesigner;
    Btnv_2: TButton;
    procedure Btnv_1Click(Sender: TObject);
    procedure frxReport1GetValue(const VarName: String;
      var Value: Variant);
    procedure Btnv_2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Btnv_1Click(Sender: TObject);
begin
  self.frxReport1.LoadFromFile('1001.fr3');
  self.frxReport1.ShowReport();
end;

procedure TForm1.frxReport1GetValue(const VarName: String;
  var Value: Variant);
begin
  if VarName = 'V1' then Value := '&';
end;

procedure TForm1.Btnv_2Click(Sender: TObject);
begin
  self.frxReport1.LoadFromFile('1001.fr3');
  self.frxReport1.DesignReport();
end;

end.
